Use protected constructor for state machine instance
Add a simple css parser as example on how to use state machine API