finished pt 1c of hw3