added code for has(ingredient). still need to modify to go around inference stuff