a bean can be used for cooking