Solution for Pro1.3 of Week5