a pan is used for cooking