added 1st draft of freeze and thaw function #65