Update and rename Main.java to Dimension.java