working code that creates a chord at the beginning of the line