completed Ch2 Ex5