Implemented simple function composition.