Added comments explaining what I did