forloops solved