Now input data can be read and nodes can be stored in order