added templates
added the solution of problem no.14