Quote Originally Posted by tomek
Could someone take a look and tell me how it should be written?
You can find a short tutorial here.