completed preliminary pass at Lab4.