Finished the basic Algorithm for regression of the user data.