Neural networks and some applications to finance