Implemented toString().
Implemented the toString() method.