Completed first homework of OOP 1