finished lab 5.1