A simple calculator implementation