commit for problem 2
init commit
updating method