Add model training code, I/O needs to be done