a markov chain generator for groovy