refactor
added isEqual method for using this model in arrays