adding sample for ipool api