Sitting with your legs straight out forces you to develop a considerable amount of hamstring flexibility, along with the requisite core tension to remain upright.
As you press up, keep the implement stacked over your shoulder and hips until the finished position.