final changes in sample program (Main.java)