Implemented Thread Class