Worked on deposit function