Write code for a basic calculator app that performs addition, subtraction, multiplication, and division.