fixed example 3