Added template for problem 31