Use an extension function for initializing