Changed thit interval to be stored in Ray class