Fixing example 8