examples with code init