toArray function complete
toString function complete