Trying to make a calculator using different formats