Wrote code for the basic calculator functionality