homework 5, last part complete