Assignment 3 Ray-tracing Solution