Add toString() and equals() methods