Completed exercise 2: Implemented read/write. Currently passes 8/17 test cases.