All three problems done