improved TwitterWriter example