For future reference to format your code, select your code in the text editor and click on the </> option in the top menu.
You will see I have also reformatted your WritePrice function by breaking it up into multiple lines. It makes it more readable.
Just to add Thallius makes a valid point.
What happens when you return to this code in the future. Is the following going to make sense to you?
[3, 300, 20, "name1", 550]
I had a look at various pages on radiators, and apart from possibly height and price I can’t figure out what those figures correspond to.