Implement StartPoint and EndPoint classes.