Stochastic Modeling by Inhomogeneous Continuous Time Markov Chains