problem 23, uses pb 12 code too