Boids in scala --- for algorithms and datastructures class