Finished code, it predicts 10 solutions