Working while loop
Equivalent for loop
Modified README.md