I think you can answer that yourself by looking at my custom header file. At the line where I declare the class, after the colon, it says the name of the class you need to inherit from.
And yes, you need to create a new class. And yes, you need to copy/paste my code.