Modify divide() method