upgrade example to 0.4

manually tested