Refatorando load_flow