Adding some notes in the function section explaining the process