This code passed but the task is kind of strange. If you run my code you will see that the written object is not equal to the read one. Only their string field are equal. That is sort of confusing and misleading.