A lady has a certain number of dollar bills in her purse. She has no other money. She spends half the money on a hat and gives $1 to a begger outside the store.She spends half the remaining dollars for lunch and tips the waiter $2. She then spends haif the remaining dollars for a book, and just before she goes home she spends $3 dollars on a hot fudge sundae. She now has $1 left. How many dollars did she began with?