Complete exercise for week2.