Calculator - With test cases