Homework for https://www.coursera.org/course/webapplications