Changed sin to cos tutorial for motion