dan2: prefer puts to printf