added some new training from loops to functions.