refactored main to use new methods of conversation package