updated the thread homework