adding functions to webpages
Ending chapter 4