reading points and lines