implemented trigram markov chain content generation