Update examples as per the new changes in 3.0.0 version

I have the examples in readme as per the changes of 3.0.0 version.