finished lab4c