Lab-1 is finish, for loop function