adds constructor to network