Finished lab functions with some error = =

Signed-off-by: mrahmiao <mrahmiao@gmail.com>
Finished Lab exercises of lecture 5

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