Created Block diagram and state machine diagram