First step of state pattern