changed TypeWriter interface