If you post the same thing 10 more times it would not help. Your code is just perfect.

Your first error was you attached the complete code without any hint on where you are stuck. Would you download somebodies code debug it and reply where he is wrong.

You made the same mistake couple of more times.

Your code is just correct but it does not work like you want and that is normal.