Created algortihm for payment messages, started working on algorithm for Deposit messages(not complete yet)