Same thing as before but this time for the Ray class