Creating injecting network class