Using arrays to create many elements