Hey Hema!
Did you try the KB code? If not do that first! It will surely help you.
Sometimes, you will see the code without main() and I guess, you can do it yourself.
Cheers!
PS: Now that you've already read KB for 5 times, I don't suggest you to go for another book. Just stick to KB. Put your brain in trying the code present in that book. You'll learn a lot! I'm sure, if you go and buy another book, you'll waste lot of time.