Work for function composition