task2: parse book data and build confusion matrices