ex 6 in lab 2 is working