Completed first three problems