Added functions and variables
Added prompts
Answer alerts