Created loop to display requested number of names