MIT assignment 5, part 1: cast shadows, reflection and refraction