new lab06a almost done with function