within method to_s(), a new line character is now appended after a compact list.