changed express sample to use client class