use compact()
finished implementation for creating categories, added category repository concrete