Refactoring the website code to allow tennisexample to show requriements as well as main program