add diagram (unfinished)