adding code samples for resell.biz and midphase