created a specific function to perform the setup before prompting for user input