Good for you.
But seriously, Thomas - we do not provide source codes here. Please make an attempt at your code and we can critique or correct you. Evidently, you didn't have a
look at the FAQ, which I demand you review before you post again. All in all, you're not off to a great start here.