Problems 11 and 12 for nnhp