added new ray class