[OOP] Solved tasks on Solutions 4 and 5