Refactoring init example