Add WriterApi abstract class