completed part b
seperate file to part b and c
completed part c
completed part D