No need to use while when you can use loop