Fixing example 8 timing code