fixed issue with next() in class Food