Refactor Multiplication.java and Main.java