Boolean interface for NeuralNetwork added
a second example added