Exercises from chapter 6 of Web Programming Step-by-Step