Rename pattern -> pattern_generator, bump verion to 1.2.2
Extarct pattern generation into individual classes