lab4 part C ...

Signed-off-by: Quan Xu <quan.xu@intel.com>