complete demo for 9-rect