Declare global variables and define global functions. #3 #4