lab3 done implementing