add contracts diagram