ray tutorial ch12