working copy of lab7 assignment