added legend to linear regression