OK, step one, breathe easy.
Step 2: paste the code at the "top" means at the top of the class, which is inside the curly braces that encompass the class definition. From your frustration it would seem that you haven't done any C# before because I looked at the demo code and it was instantly clear what to do.
Step 3: in the future something like this more appropriately would go under the "Tech Off" forum rather than Coffeehouse... or perhaps more directly to a site geared toward coding assistance like Stack Overflow.