add training parts grouping script