my for and while loop work