Added method to create subcategories after creating a category.