sample of function call as constructor guaranteed