Homework for OOP course (SoftUni)