added a stringify method for lists