Reggie's Linear Regression

Hi, so I finished this project, and as far as I can tell everything works as it should… not 100% sure but I think it does.
So what is the problem? I have no idea what I did here, could someone explain the flow and the overall aim of what we are doing in this project please?