The image below shows a 2nd solution by directly referencing the variable. However it still get the accessed none error.