Adding linear fitting