Multilayer perceptron implementation

My neural network learns XOR:

perceptron