Added in-order print method