Finished exercises of lecture 6

Signed-off-by: mrahmiao <mrahmiao@gmail.com>