Adding equals() and toString() methods