Refactored multiply() and sub()