implemented subcategories using act_as_tree gem