Implementation for a simple calculator