Ok, I will try to make an example, but it's meant to be learned from, not copied from. As in, you will need to modify it to match your engine.