Did a final clean up for the coding and added an alert and storage in the console.log for the finalResult.