Finished implementing own writable class