An introduction to neural networks for beginners