lab4 part A ...

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