Updated example 3 with latest ecs