Post #39 is an example. You need to actually read what I wrote and apply it to your code.