A ray tracer implemented in Scala