firt solution simple looping