hw3 task2 initialized