Complete exercises 5 & 6