Code needs cleanup, but works
to use multiple import statements to implement 'class' like behavior, and also to share a common list of handlers between multiple patterns.