Updated examples to use new ways of initialization.