init for problem 1