I am getting syntax error with above script: it says, unexpected end of file. Could’nt figure out what is wrong with it :S