def flatten_meal_item(meal_item):
    """
    Input: <meal_items> is in the form:
            [
                    [category,title,extra],
                    ...
            ]
    Output: dictionaries, each one containing
            a list of items w/extra text that fall into the
            category.

            {'stockpot':[
                                            {
                                                    'title':'oatmeal',
                                                    'extra':'decent'
                                            },...
                                    ]
            },
            {'classics'
            }
    """
    categories = {}
    for meal in meal_item:
        meal_category = meal[0]
        meal_data = {'title': meal[1], 'extra': meal[2]}
        if meal_category not in categories:
            categories[meal_category] = [meal_data]
        else:
            categories[meal_category].append(meal_data)
    return categories