Question: Castle Newe was a castellated mansion house, situated in Aberdeenshire, and built in 1831 by Archibald Simpson, it was based on an existing Z-plan castle from 1604, which had square towers and was similar to Glenbuchat Castle, a historic Z plan Scottish castle built in what year, for John Gordon of Cairnbarrow to mark his wedding?

Context paragraphs:
Cluny Castle: Cluny Castle was originally built c.1604 as a Z-plan castle replacing either a house or small peel tower.  Sited in the parish of Cluny, it is south of Monymusk and north of Sauchen in Aberdeenshire, north-east Scotland.  Owned by three separate branches of Gordon families over the centuries, it was used to shelter Jacobite rebels in the mid-18th century.  Extensive additions were made in 1820 to the design of architect John Smith when it was in the ownership of Colonel John Gordon.  Two wings of the castle and the adjoining private chapel were destroyed by fire in 1926, but the damage was restored.

Glenbuchat Castle: Glenbuchat Castle is a historic Z plan Scottish castle built in 1590 for John Gordon of Cairnbarrow to mark his wedding.  It is located above the River Don, near Kildrummy, Aberdeenshire.  The building is roofless, but otherwise in fairly good repair.

Glenveagh Castle: Glenveagh Castle (Irish: "Caisleán Ghleann Bheatha" ) is a large castellated Mansion house built in County Donegal,

Kames Castle: Kames Castle is a castellated mansion house on the Isle of Bute, Scotland.

Castle Newe: Castle Newe was a castellated mansion house, situated in Aberdeenshire, and built in 1831 by Archibald Simpson.  It was based on an existing Z-plan castle from 1604, which had square towers and was similar to Glenbuchat Castle.  The castle was demolished in 1927 and the stone used to build Elphinstone Hall, University of Aberdeen.  The former coach house is now known as the House of Newe, and contains furniture from the castle.  It was a property of the Clan Forbes.

Drumtochty Castle: Drumtochty Castle is a neo-gothic style castellated mansion erected in the year 1812 approximately three kilometres northwest of Auchenblae, Aberdeenshire, Scotland.  This castle stands on the southern edge of Drumtochty Forest.  Other noted castles in Kincardineshire are Fasque House, Fetteresso Castle, Dunnottar Castle and Muchalls Castle.

Z-plan castle: Z Plan is a form of castle design common in England and Scotland.  The Z-plan castle has a strong central rectangular tower with smaller towers attached at diagonally opposite corners.

Cortachy Castle: Cortachy Castle is a castellated mansion House at Cortachy, Angus, Scotland, some four miles north of Kirriemuir.  The present building dates from the 15th century, preceded by an earlier structure that was owned by the Earls of Strathearn.  It was acquired by the Ogilvies in 1473 and substantively modified in the 17th and 19th centuries.  In 1820 it was "romanticised", as was the fashion of the day, by the addition of crenellations, plus other alterations by R & R Dickson.  Part of the building was damaged by fire in 1883 and it was extensively rebuilt in the following two years by Kinnear & Peddie.

Drzewica Castle: Drzewica Castle - a Gothic-Renaissance castle built between 1527 and 1535 by Archbishop of Gniezno Maciej Drzewicki.  The Archbishop built the castle on the peripheries of the town, by the river Drzewiczka and encircled the fortress with moats, separated by a bulwark.  The building's plan is based on a regular rectangular shape.  Its defence systems are based on four square towers located in each corner of the castle.  The building burned down in 1814, remaining a well preserved ruin.  Thus, the castle did not undergo any later modifications, remaining one of Poland's best preserved residences from the first part of the sixteenth-century.

Cairnbulg Castle: Cairnbulg Castle is a z-plan castle situated in Cairnbulg, Aberdeenshire, Scotland.  It was described by W. Douglas Simpson as one of the nine castles of the Knuckle, referring to the rocky headland of north-east Aberdeenshire.

Supporting paragraphs: Castle Newe Glenbuchat Castle
Answer: 1590