A simple implementation of a probabilistic model for event sequences