part 3; v1
hw3part 3 done