simple looping solved