a bean is used for cooking