finished Lab 4 of class 5