Notes used to give tutorials (for example at Euroscipy 2010/2011)