This is a software development question. It might fit on http://Stackoverflow.com, but I consider it a bit too basic to just migrate it over there.
Please check with their help center to see if the question is welcome and if yes, post it there.
Also, please read our help center before posting here.