Example 3

Design a class Bank  in such a way that collection of all accounts is kept at all times as well as the number of accounts which cannot exceed 100 for this bank.   Class Bank should use Account2 class from example 2 to create  individual accounts. The functionality includes depositing to, and withdrawing  from an account with specified ssn and given amount.  In addition, adding interest to all accounts, and printing report for all accounts should be performed at the end of each day.