created a calculator utility class