minimized Library_main.java, refactoring(not finishied), and 2 cases of Junit test