Ray class