Implemented Ray tracing