Implementation of Ray Tracing