Machine Learning Basics: Building a Regression model in R