Finished copying (from wiki) chapt 2