refactor ExtractBookStruct module to TxtBook class