finished 1st part of hw4