Input (grade 7): When the silk ran out she saw a small cocoon and realized that this cocoon was the source of the silk.
Output (grade 7): When the silk ran out, she saw a small cocoon, and realized that this cocoon was the source of the silk.