Creating and Implementing an Encapsulated Class