OOP third homework