Added Ray class