How Forward Propagation in Neural Networks works