Various pattern-generating programs