Original sentence: It was founded in 1558 by Johann Hoppe (1512-1565), who had previously worked at schools in Culm and Elbing (now Chełmno and Elbląg) until Catholic prince-bishop Stanislaus Hosius closed them.It was one of the most developed educational centers connected to the  Polish-Lithuanian Commonwealth.The Academic Gymnasium Danzig (, ) was a school founded in Danzig, Prussia  , (now Gdańsk, Poland)
Edited sentence: It was one of the most developed educational centers in Polish-Lithuanian Commonwealth.The Academic Gymnasium Danzig (, ) was a school founded in Danzig (Gdańsk), Poland , It was founded in 1558 by Johann Hoppe (1512-1565), who had previously worked at schools in Culm Chełmno and Elbing Elbląg until Catholic prince-bishop Stanislaus Hosius closed them