Describes functionnalities in factory.js