Trailing commas
Encapsulate create_widget in a class