created a for loop using break; and continue;