exercise of eof throw exceptions done