in reply to why this code doesnt work?
Actually your code is like this...
nothing wrong with code except one. You should write