neural network class to interact with SNN