Simple ray tracer written in scala