add lab2 state machine diagram