Dear Frank,
Perfect, thank you very much :-).
Andras
something like this
cubes[[ic]] = {Hue[(3i+j)/10],Cuboid[ {i-0.5,j-0.5,1} , {i+0.5,j+0.5,2} ]} ;