added example with object-oriented API to readme