generating some patterns

can generate some rectangular patterns