Completed the class implementation and set the attributes private.