completed simple calculator functionality(follows DMAS order properly)