Code reorder
Function motion to _utils
Interval implementation in Segment class
Interval implementation in webpage