Implemented with a for loop structure