lab5, fixed lab3