(...)
my source code: http://pastebin.com/bKPyKSwS