finished pt 1b of hw3