Linear Regression Example Code Switching