More loops
Adds setValues function in Segment class