add Problem 31