 The plan itself is probably inspired by the Basilica of San Vitale in Ravenna built by Justinian I in the 6th century.Other experts point at similarities with the Church of the Saints Sergius and Bacchus and Constantinople's Chrysotriklinos, the main throne room in the Great Palace of Constantinople.During religious offices, Charlemagne stood in the second floor gallery, as did the Emperor in Constantinople.