Assignment 4 OOP: Encapsulation Solution