implemented for loop, break and continue