finalized lab4 w/tar