Finished two exercises of lecture 4

Signed-off-by: mrahmiao <mrahmiao@gmail.com>
Finished exercises of letcutre 4

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