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