Problems 22 and 23 complete