Problems 18 and 25 from Section F.1 in Bulk Pack