Adding template for problem1