done implementing lab3