implement q3
adda graphs for module2