Use the recommended pattern for class initialization.