How to Express a Function is a Composition of Two Other Functions f o g