Added notes to the changes that I did to the function ot explain that now it is a variable.