No actually i didnt get an error message. The program was not executing only.. Actually i was doing this in a vm. I tried it in my host machine and it worked. Then on checking i realized i didnt have a module installed in the vm. I understood my problem and have already started working on it.. Thank you for ur help.