Criando as funcoes