script now accepts user input, formats it, and returns it