Program that simulates a friend chatting