Use a generator/comprehension to generate setters