Adding template and problem 1B