Added the first template and basic write functionality