added class based invocation of the FileReader