adding the each method to the Reader class