finished pt 1a of hw3