second task from OOP_2