The draft of the Indian Penal Code was prepared by the First Law Commission, chaired by Thomas Babington Macaulay in 1834 and was submitted to Governor-General of India Council in 1835. Based on a simplified codification of the law of England at the time, elements were also derived from the Napoleonic Code and from Edward Livingston's Louisiana Civil Code of 1825. The first final draft of the Indian Penal Code was submitted to the Governor-General of India in Council in 1837, but the draft was again revised. The drafting was completed in 1850 and the Code was presented to the Legislative Council in 1856, but it did not take its place on the statute book of British India until a generation later, following the Indian Rebellion of 1857. The draft then underwent a very careful revision at the hands of Barnes Peacock, who later became the first Chief Justice of the Calcutta High Court, and the future puisne judges of the Calcutta High Court, who were members of the Legislative Council, and was passed into law on 6 October 1860. The Code came into operation on 1 January 1862. Macaulay did not survive to see the penal code he wrote come into force, having died near the end of 1859. The code came into force in Jammu and Kashmir on 31 October 2019, by virtue of the Jammu and Kashmir Reorganisation Act, 2019, and replaced the state's Ranbir Penal Code.