Finished lab7b without validation. Still needs to be tested.