first steps towards implementing semi-markov model