Added if statement
added a for loop
delete a line of conde
Merge pull request #1 from agreenturtle/James

James