Implemented a DamageWriter class