ex14 deals with prompting user info and passing to output