The position in which the prince was placed by his marriage, while one of distinction, also offered considerable difficulties; in Albert's own words, "I am very happy and contented; but the difficulty in filling my place with the proper dignity is that I am only the husband, not the master in the house." The Queen's household was run by her former governess, Baroness Lehzen. Albert referred to her as the "House Dragon", and manoeuvred to dislodge the Baroness from her position.Within two months of the marriage, Victoria was pregnant. Albert started to take on public roles; he became President of the Society for the Extinction of Slavery (which was still legal in the southern United States and the colonies of France); and helped Victoria privately with her government paperwork.In June 1840, while on a public carriage ride, Albert and the pregnant Victoria were shot at by Edward Oxford, who was later judged insane. Neither Albert nor Victoria was hurt and Albert was praised in the newspapers for his courage and coolness during the attack. Albert was gaining public support as well as political influence, which showed itself practically when, in August, Parliament passed the Regency Act 1840 to designate him regent in the event of Victoria's death before their child reached the age of majority. Their first child, Victoria, named after her mother, was born in November. Eight other children would follow over the next seventeen years. All nine children survived to adulthood, which was remarkable for the era and which biographer Hermione Hobhouse credited to Albert's "enlightened influence" on the healthy running of the nursery. In early 1841, he successfully removed the nursery from Lehzen's pervasive control, and in September 1842, Lehzen left Britain permanently—much to Albert's relief.After the 1841 general election, Melbourne was replaced as Prime Minister by Sir Robert Peel, who appointed Albert as chairman of the Royal Commission in charge of redecorating the new Palace of Westminster. The Palace had burned down seven years before, and was being rebuilt. As a patron and purchaser of pictures and sculpture, the commission was set up to promote the fine arts in Britain. The commission's work was slow, and the architect, Charles Barry, took many decisions out of the commissioners' hands by decorating rooms with ornate furnishings that were treated as part of the architecture. Albert was more successful as a private patron and collector. Among his notable purchases were early German and Italian paintings—such as Lucas Cranach the Elder's Apollo and Diana and Fra Angelico's St Peter Martyr—and contemporary pieces from Franz Xaver Winterhalter and Edwin Landseer. Ludwig Gruner, of Dresden, assisted Albert in buying pictures of the highest quality.Albert and Victoria were shot at again on both 29 and 30 May 1842, but were unhurt. The culprit, John Francis, was detained and condemned to death, although he was later reprieved. Some of their early unpopularity came about because of their stiffness and adherence to protocol in public, though in private the couple were more easy-going. In early 1844, Victoria and Albert were apart for the first time since their marriage when he returned to Coburg on the death of his father.

Question: How long was the palace of Westminster burned down before it was rebuild
Answer: seven years