Modificated Divide.java 2