First part of templete