public void Add(CheckingAccount account) { int max = Accounts.Max(a => a.Id); account.Id = max + 1; Accounts.Add(account); }