Adds chapter 4 nn.py - neural network script