Started parsing and added writing, don't know how to implement arrays...