Update MainProgram.java