My homework for OOP course in Nobosibirsk State University