added categories for posts by has many throught