Added exercises for week4.

(cherry picked from commit 3b3d5b3424201c721969eee7d448ae0451aff62b)