Nafees, hi and welcome to the C2. Your question is around the very basics of c2. I suggest you look at the examples delivered with your c2 installation first. They are even seperated into tiers and very well documented. After that, I suggest you check out the "how do I" forums, there is a sticky there filled with the most basic frequently asked questions.
See you around .)