Added State pattern
Playground generated from markdown file