Creation of neural network and its elements seems to work fine, but input layer is to be made quite better.