OO training homework