Problems 19 and 20 for nnhp