Using While loop