moved all functions to vars and added practice console log session at bottom