ch5 added
adj matrix