Bcs, the structure DOESN'T MATCH. Look my example and your, they are different, no? Also, if you are adding new, custom action (changeclass in your case), you have to add it @ Action enum inside FloodProtector. Take a look here, in this code I create new Action enum. http://pastebin.com/GuneGiQA
No ready codes. You want to learn after all, no? If you want to learn, just follow tips / examples, change/add one/two letters and you are done.