Example 2
Design a class Account2 to create slightly more sophisticated bank account. This class should inherit the structure and functionality of Account1 described in example1, and in addition, it should provide adding interest at the end of each day. Interest rate fluctuates. Each day the rate is different.