update the mtehod of rectangle_init and examples in ipython notebook examples