Prototypal inheritance refactor