Create function to do the math operations