Code for the following video tutorial http://youtu.be/O8oKwIU7wPY