updated example 1 to use latest ECS lib