Please post your code using the community standards. See #11 for instructions.
It will expedite a solution.