fixing example 2