Add FromLine constructor