it is a subset of a line with two endpoints