creating the categories controller and model and adding the category_id to posts