Basic state machine
adding further steps to the state machine, and fixed package.json