Completed divide() and add() methods.