Change composing way, compose as function composition

Ref #3