composing functions example