Added model logic for transition.
Merge branch 'master' of https://github.com/sidhjhawar/JDP.git