attempting chefgr in c