Hi saood,
This is because of the library not properly loaded or maybe due to the order of exectuion of your files. As it clearly states IO is undefined. Try to check it once clearly that you maintain the sequence of order properly or not.
Thanks,
Nithyanandam