Encapsulated the Character class