changes to lab 3
removed unused local var