completed ex3 neural net prediction