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