What error? Do you get a compiler error? An error I see is that there is not an ending } for the class
Please copy and paste here the full text of the error message.