Extending classes the correct way.