add homework 2 OOP