Implemented Forward Propagation.