added a function to user class and made a FoodService Factory and a Impl