OOP: Homework 2 some methods implemented.