template starting code