diagram work