Create trainThread.h