Exercises 2.18 and 2.27 from section 2.2

1.3 is not really the right section, but the closest match.