trying to figure out how to keep a running count of money with files