Added clear and printInOrder()