created models for department, category, and product, implemented factory helper to facilitate wrapping of resource/factory responses