Created math method with parameters.