Added Library class, constructor, getters and wrote tests for it