Exercises inspired by Working Effectively with Legacy Code