Made changes to make code more readable. Did not finish with analysis