Complete exercises 5.2-3 and 5.2-4