drawing dynamically a stencil

The first observation is that ShapeGroup and ConnectorGroup was deleted.
All the shapes(Circle, Rectangle and Line) are draw dinamically