finished part0 of hw1