part4 of nwen304 lab2 tri1/2014