adding example of simplyfied api