implemented generate network