two seperate parts to this homework