completed single variable linear regression including plots, needs to refactored to oop but
otherwise complete