Task 8

Task 8 from Object oriented programming on pythonschool.net