Complete Task 3 except I/Os

Signed-off-by: tianyuli <tli@wpi.edu>