hi,
the program look ok.
I am also amazed why the wrong shape is generated.

tanvon malik