Remove duplicate methods.
Add edit_preferences example.