Adding loops with breaks and continues