Prototype functions

Just implemented the simple (and quite silly) tutorial example of
prototype functions.