Simplified neural network constructor.