ink to enum as classes in the state pattern