Write first template