update example to use static init