add a base class for simple neural net with no hidden layer