finished code to talk