Build elements dynamically in flocking example.