Tidied up version of notes from Iain Bell, via Sally Kerr