finish neiral network implementation