Created base class for DataWriters
Altered writer classes to inherit from it.