update the method of rectangle_init and examples in ipython notebook exa...

...mples