A gentle introduction to neural networks