- changed the writer/reader to use paramters instead of constructors