Java - Library software assignment