Update Main.java

manager class to be added with the codes written in main