Amey : learned while loop