Adding OOP Chapter 2 exercises 2 and 3