First of all, please format your code properly, so it looks better in your post (the guide to it can be found here).
Second thing, did you check your code for appropriate use of space-key (as in, too much or too little spaces)?
Third thing is, what exactly is the problem? Did you receive an error message? If yes, what does it say?