Adding first state pattern example