Of course there is.
You should be reading the API first and then when you have a problem you post a question.
We are not here to write code for you. The tutorials have an example. Why should we be wasting time giving you an example when the example is two clicks away.
Learn to do some basic problem solving on you own, because with your attitude you won't be getting much help.