A hand written notebook belonging to World War II code breaking hero Alan Turing was up for auction recently and fetched a whopping $1,025,000. US.

The 56 page notebook which dates from 1942-44 when Turing worked at Bletchley Park in the UK where he was instrumental in Breaking Nazi Germany’s enigma code – a period in which has recently been the subject of the film The Imitation Game.

Turning is often cited as the father the modern computer and included the manuscript are Turing’s notes on the foundations of mathematical notations and computer science.

In addition to the notebook, the auction house also offered for sale a working German Enigma enciphering machine. The three-rotor device was manufactured for the German military in July 1944 and sold for $240,000.

Despite his amazing efforts which saved countless lives and greatly helped the Allies win the war, Turing was prosecuted for homosexuality in 1952 and underwent chemical castration before he died of suspected suicide. The British Government offered Turing a public apology in 2009, while Queen Elizabeth II granted him a posthumous pardon in 2013.