Sorry, my fault! I thought you were looking for the same, what is showed in the example. Did not read your problem mindfuly.
But as i can see Meyer already gave you a link to a related post, where you perhaps find your solution.
Good luck and happy coding.