Complete solution for Pegas