wrote:
i need to help very quickly
Well, that can only mean trouble. Do you have an assignment past due, or a client with a deadline ? If the former, talk to your teacher. If the latter, tell your client you're a fraud, then find a class and a teacher.
You need to do your own work. We help programmers who are stuck, not lazy people who don't write any code for themselves.