I wrote a tutorial about that some time ago. You can find it here:
I hope that is what you are looking for.