finish homework 3.1
Merge pull request #2 from kterada0509/add-HW-3

finish homework 3.1