funcao resolvida