Exam task OOP