Modified Factory, Deposit and Withdraw to use IEntry

createTransaction in IFactory, Deposit constructor, and Withdraw
constructor use IEntry instead of IAccount and amount.