added transitionModel.cpp