Finite Loop example