ListarMaquinas refactored