Wrote functions to take input text, build a dictionary of Markov chains with it and generate random text