Homework 2 exercise 1~3