implements line entity