updated puzzle examples to use class factories