examples updated to 0.2.2 version
adapted example from 0.2.1