initial implementation of neural nets