OOP second homework

second homework