COMPOSITION
definition
the above figure is Mealy machine