finalising inheritiance setup.

prototypal inheritance is a curse and a blesssing…