correct method name to printInOrder