implemented Phong illumination and ray-sphere intersection