adding problem 2,nth to last pring