code that was used in 25/9/2013 presentation.