implement Write for containers typewriter