The above comment posted by 'Igor Kushnarev' must be the answer. As he said,
this link[
^] has all the detail with example.
Try, make some effort from your side too. Posting like this makes us look like a homework question. Be specific if you have doubts/issues.