Homework section 2 for udacity web dev course