Simple inheritance implementation.

Yup, I know it's not a design pattern.