first draft of fitting a line example