network and learning implemented. No main code, no testing