Added book example for state pattern