added some illumination code to calculate phong shading