refactoring of Calculator class
commenting of calculator class