basic process to plot tree for molecules