Adding the threadcopy class