Here are some general categories of things you could do to extend or improve this software:
You can make the animation loop just by
running through the array repeatedly,
going back to the beginning of the array
after you've reached the end.
Replace the simple boxes that I've created with
something more ambitious.
Can you model a dog or a house? A human face or body?
If you're mathematically inclined, see
if you can write a program that automatically
generates mathematical shapes to be displayed
in the renderer.
Start with simple shapes, like a sphere,
and then see if you can create mountains
or clouds, or dodecahedra.
Animation:
Shape: