Elements of artificial neural networks