Create inheritance-functions.hs

This is "base" modified to pass a function as the parameter