three level nested loop, 3