metodo de fabrica o factory method