working using for loops but without using objects