A chat exercise from the wrox book