Improving your code with modern idioms