three level nested loop, 5