added shapes to factory
factory pattern final
sphinx doc for factory
rst files to generate the doc