microlib to easily add the creator pattern to your class.