Provide an implementation of function composition.