solutions for problem 1 ~ 7