in reply to
The purpose of this site is not to do your homework for you. If you have a specific problem with some code that you have been working on then there may be some help for you here. All the things that you are trying to do have been done before and are pretty straight forward. Search this site for examples before you go asking vauge questions like this one.
Also, when including code, please use the code html tags and other tips found in
Writeup Formatting tips
Anyway, no drug, not even alcohol, causes the fundamental ills of society.
If we're looking for the source of our troubles, we shouldn't test people
for drugs, we should test them for stupidity, ignorance, greed and love of
--P. J. O'Rourke