Lab 5
corrected errors for validation