modified Reader.java