Performing simple linear regression tasks