Typos + correction in loop solution