added method delete_message() and added new method in SystemWriter  write()