added class diagram for state pattern