Prototypical inheritance for functions.