Code for the following video tutorial