A new model for supercooling and superheating effects