first 4 tasks - second OOP homework