Hint 1

Look closely at the withdraw function.