chef working code