Add class library
Minimal working statemanager