Implemented ray transformations and started to reconstruct calculateColor function