Solutions to first three problems