lab4: exercise4 done