added example with class member