id; Money credit; membershipLevel() { return max(100, this.credit / 100); } eq(Account o) { return this.credit == o.credit && this.id == o.id; } } rename credit to balance in Account class Account { Id id; Money balance; membershipLevel() { return max(100, this.balance / 100); } eq(Account o) { return this.balance == o.balance && this.id == o.id; } }