Finished part b of lab 6