Create librarian.java

Librarian function