some code using loops

I will actually do annotation of stuff that I find interesting using NOTE keyword in the code