added train method to PMIModel.java, not printing out anything yet, just seeing if it will compile and run