This is the right way to do inheritence.