added diagram in jpg