Modeling Phase Transition and Metastable Phases