main: Use a pretty foreach