Basic calculator implementation