cook legume