MIDPS_LAB_5 updated