changed name of postfix class to calculator as per project specifications
refactor function names for readability