Part 5b

I finished 5b for all three problems.