Write basic template