Changed to_s function
Adding class def for List