Common Deposit method put in the Account class.