Add state design pattern sample code
Add state design pattern sample code