added demo1 and demo2 for demonstration of using the NN