Override 'equals' so the model can be compared.