Task 7

Task 7 from Object oriented programming on pythonschool.net