Simplified implementation of a neural network