3 for j from 1 to m