Code from debugging demo given by Emma at 14th February meeting