added stuff from lab to neural networks