add thread group study code