calculator for assignment three for mobile class