codecademy global vars, functions