Text this: Stochastic models: an algorithmic approach