Eating array and function