Vagas nas salas (logic) e refactoring