finished SimpleChat class