explain templates