Implemented for loop