Fix categories jobs association. Reworked the factories.

This PR would Close #15