calculator that shows input and output