Updated the PastMeal class to write to  file