added Base Ray trace code. over classed for sure