CECS 524 Using Functions Introduction to Haskell, Part 2: Pure Functions, linked on the class site, shows how to program in a functional language by writing functions. The example used is to list the top ten words in a text in order of frequency. Write an Erlang program to list the top ten words and their frequencies in a given text. Use the novel Emma by Jane Austen which is linked on the class site. My program is 26 lines exclusive of comments. I used recursion and list comprehensions. I wrote six functions and used file:read_file, file:close, binary_to_list, string:tokens, string:to_lower, lists:sort, lists:splitwith, lists:last, lists:reverse, and lists:sublist.