Lab 3 in class exercise