Added a for loop and organized the comments