How to create an "extension class"?