modified exercise11.2.c  added node n5