Exercise 8 from the hackbright curriculum.  Uses markov chains to generate text based on text input.