alternative calculator that uses 1 helper method for all the methods