Code for the homework 5 of the udacity's web development course