private void addTransaction(IPerson person, IBook book) { if (!this.transactions.ContainsKey(person)) { this.transactions.Add(person, new List<IBook>()); } book.decrementCounter(); this.transactions[person].Add(book); }