add print() method to lists