Upgrade examples with 0.4.0