domain and range of composite functions