made copy constructor and printList()