What seems to be the trouble with the posted method?
What do you seem to be stuck on?