defineste logica