An introduction to neural networks