changing output from procedure to function
testing
correcting unbound identifier error for the prompt call