add books.json
move repository to separate file, add file IO