Chapter4 updated functional tests
Refactor home page to use a template
Finish chapter 4