finished dynamic model with extended number of states