Composition of two functions - Advanced