complete problemA solution