Part II implemented

Signed-off-by: Calvin Leung Huang <cleung2010@gmail.com>