Finding the composition of two functions