Create function process() that does the main work of main().