I came in on Friday looking to test drive an Accent and it took a while to find one on the lot but eventually we did and I really liked it. After test driving the Accent we went inside and started to talk about numbers. It took about 4 hours to negotiate to get into my price range. A few times i felt like I was being pressured but I told them what my budget was and I didn't deviate from it. The trick to buying a car is that you need to know your budget and you need to stick to it. I got a brand new Hyundai Accent at a great price. The only thing I had to compromise on were the financing terms. I didn't buy the extended warranty as it's a brand new car so it's covered for the first 5 years.
You need to be confident and have the ability to say no and walk away if you're not comfortable with your numbers. Don't settle for something outside your budget.