Finished version 1: parses a book and returns the word frequncies