Added network constructor