add categories service and explore $resource