finalized lab4