first exercise from ch. 3