composition of functions exer. 2.5