Created a prompt function to simplify receving input from the user