Added lab3: everything works up to reading and writing