implemented 2 kinds of for statements
added an example for for statements