Class Example and Encapsulated calculator