simplified Line class