A simple raytracer in scala