added category model and relationships