Added methods to line and a compare to func.