Added chatserver code from assignment