updated to reflect lecture from 21/07/2014