Eat function is defined