code for chapter 9 'Pythonic objects' in classes/ dir