finished first coding of writer