Added Ray class.