working on: base class for patterns and stable rate pattern generator objects, which implement the iterator protocol