build sample script for Markov chain generation