resized second layer to have 8 outputs and 10 hidden nodes