OOP Exam second task