Implementando as condicionais