Start of Exercise 48. Environment set up and ex48_tests.py copied manually from workbook