Extend SimplePatternMachine sample
Add sample to show how to use case classes in pattern machine.