A simple calculator using a dictionary to look up functions for operators