hw2 initialize