actually read assignment correctly and did correctly, still need to write file