`areEqual` should be a method instead of this.