Added some code for Reader class