functional basic neural net