A cooker including: an inner pot; a cooling system coupled to the inner pot for cooling the inner pot; a heating system coupled to the inner pot for heating the pot; and a processor configured to control the cooling system and the heating system according to a programmed sequence.