added more functions and check for enough money in deposit
added your function