lab exam 2 modification done with some warnings solved