Added printList(). This is based on prettyPrint() in IntegerList from Lecture examples