The next body part is the thorax. It is divided into three parts. Each part holds a pair of legs. The legs can be adapted to jump, grab, dig or even swim.