writing linears and lines with two points