Workshop of the FSM  + TCP IO + Tests