updated food item class with constructor