Only for review sake

unnecessary global variable. As an extra quiz, keep the functionality and try to get rid of it.