chapter4 greeting example