added state for retrieving money.