first cut of classwriter implementation