add camera class
fixed tutorial6's bug