made write to file pass, and overrid all toString() of each element