Input (grade 7): It was built by Mughal emperor Shah Jahan in memory of his third wife, Mumtaz Mahal.
Output (grade 9): The Taj Mahal is a tomb built in the 17th century by Moghul ruler Shah Jahan in memory of his wife, Mumtaz Mahal.