Created working sample code for tutorial 5: raycasting