Create using.rst

Created the document for creating and using the factory pattern