2 level neural network implemented