watch this video. you are almost there.
Code:
https://www.youtube.com/watch?v=WCxhM0CFXMQ