Can you give me a pseudocode example of ECS?