New inherit function to simplify prototypal inheritance