Add template for problem 51